import contractConfigApi from "@/api/declaration/crm/contractConfigApi"
import httpRequest from "@/config/axios/httpRequest"
import { CrmContractConfigModel } from "@/models/crm/CrmContractConfigModel"


// 获取合同配置
export const getContractConfig = async () => {
  return await httpRequest.get(contractConfigApi.GetContractConfig)
}

// 更新合同配置
export const saveContractConfig = async (data: CrmContractConfigModel) => {
  return await httpRequest.get(contractConfigApi.SaveContractConfig, { params: data })
}
